#!/usr/bin/env bash

git pull

mvn -DskipTests -pl ytx-account-common,spring-boot-starter-ytx-account,ytx-spring-boot-security-web,ytx-spring-boot-security-mobile package install
mvn -DskipTests -P production clean package

scp ytx-account-server/target/ytx-account-server-1.0.0-SNAPSHOT.jar root@user.ytx.net:/tmp
scp ytx-account-login/target/ytx-account-login-1.0.0-SNAPSHOT.jar root@user.ytx.net:/tmp
